﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns="http://schemas.microsoft.com/practices/2013/entlib/semanticlogging/etw"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://schemas.microsoft.com/practices/2013/entlib/semanticlogging/etw SemanticLogging-svc.xsd">
  
  <!-- Optional settings for fine tuning performance and Trace Event Session identification-->
  <traceEventService/>

  <!-- Sinks reference definitons used by this host to listen ETW events -->
  <sinks>
    <!-- The service identity should have security permissions to access the resource according to each event sink -->
    <!--[Add any built-in or custom sink definition here]-->    
    <customSink name="RIEventSink" type ="ReflectSoftware.Insight.Extensions.SemanticLogging.RIEventSink, ReflectSoftware.Insight.Extensions.SemanticLogging">
      <sources>
        <eventSource name="MyFirstEventSource" level="LogAlways" />
      </sources>
      <parameters>
        <!-- messagePattern: 
              %providerid%
              %eventid%
              %keywords%
              %level%
              %message%
              %opcode%
              %task%
              %version%
              %payload%
              %eventname%
              %timestamp%
              
              example patterns:
                  messagePattern1: %message% - %payload%
                  messagePattern2: %message% - %payload%
                  messagePattern3: %message% - %payload%, %eventid%, %opcode%, %eventname%, %providerid%
        -->
        <parameter name="instanceName" type="System.String" value="semantic" />
        <parameter name="messagePattern" type="System.String" value="%message% -  %eventid%, %opcode%, %payload%" />
        <parameter name="timeFormat" type="System.String" value="yyyy-MM-ddTHH:mm:ss.fffffffZ" />
      </parameters>
    </customSink>
  </sinks>

</configuration>
